package com.htthorizon.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.htthorizon.common.core.annotation.Excel;
import com.htthorizon.common.core.web.domain.BaseEntity;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 模型查询条件配置对象 model_serach
 *
 * @author mark
 * @date 2023-11-27
 */
@Valid
public class ModelSearch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模型ID */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotNull(message = "模型ID不能为空")
    private Long modelId;

    /** 数据源ID */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotNull(message = "数据源ID不能为空")
    private Long sourceId;

    /** 查询条件json */
    @Excel(name = "查询条件json")
    private String searchJson;

    /** 状态：0正常-1已删除 */
    @Excel(name = "状态：0正常-1已删除")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setSourceId(Long sourceId)
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId()
    {
        return sourceId;
    }
    public void setSearchJson(String searchJson)
    {
        this.searchJson = searchJson;
    }

    public String getSearchJson()
    {
        return searchJson;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("modelId", getModelId())
                .append("sourceId", getSourceId())
                .append("searchJson", getSearchJson())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
